package com.wy.service;

import com.wy.bean.Goods;
import com.wy.dao.GoodsDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {

    @Resource
    private GoodsDao goodsDao;

    @Override
    public List<Goods> list(Goods goods) {
        return goodsDao.list(goods);
    }

    @Override
    public void insertbth(List<Goods> list) {
        goodsDao.insertbth(list);
    }
}
